tbody.addEventListener('click', function (e) {
	const target = e.target
	const classes = Array.from(target.classList)
	const tr = target.parentNode.parentNode
	if(classes.includes("btn-edit")){
		tr.classList.add('edit')
		const spans = tr.querySelectorAll('span')
		spans.forEach(span => {
			const a = span.innerHTML
			span.nextElementSibling.value = a
		})
	}if(classes.includes('btn-cancel')){
		// const btncancel = document.querySelector('.btn-cancel')
		// btncancel.addEventListener('click', function () {
		
		tr.classList.remove('edit')
		// })  
	}
})
